<?php

namespace magein\sms;

use Closure;

class Sms
{
    /**
     * @var Send|null
     */
    public $send = null;

    protected $queue = null;

    /**
     * 设置配置信息
     * @param array $config
     * @return void
     */
    public function setConfig(array $config)
    {
        $this->send = new Send($config);
    }

    public function setQueue(Closure $closure)
    {
        $this->queue = $closure;
    }

    public function getQueue()
    {
        return $this->queue;
    }
}